package com.uyayo.portal.vo;

import lombok.Data;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

@Data
public class CmsReplyVO {
	
	@NotNull(message = "{articleId.null}")
	private Long articleId;

	@NotNull(message = "{commentId.null}")
	private Long commentId;

	@NotNull(message = "{replyToMemberId.null}")
	private Long replyToMemberId;

	@NotNull(message = "{content.null}")
	@Size(min = 5, max = 5000, message = "{content.size.error}")
	private String content;


	/**
	 * 回复目标id（reply_target_type 是1的话，则reply_target_id ＝ comment_id，reply_target_type是 2，则reply_target_id ＝ reply_to_member_id）
	 */
	private Long replyTargetId;

	/**
	 * 回复类型（1 评论的回复  2 回复的回复）
	 */
	private Short replyTargetType;

}
